package com.lc.ws;

import javax.ejb.Stateless;
import javax.interceptor.Interceptors;
import javax.jws.WebMethod;
import javax.jws.WebService;

import com.lc.ejb.Users;
import com.lc.ejb.UsersManager;
import com.lc.interceptor.MyInterceptor;

@Stateless
@WebService
@Interceptors(MyInterceptor.class)
public class UsersManagerWebService implements UsersManager {

	@Override
	@WebMethod
	public void addUser(Users user) {
		System.out.println("通过WebService成功添加" + user.getUname() + "用户");
	}

	@WebMethod
	public String sayHi(String name) {
		return "Hi!" + name;
	}

}
